package com.cskaoyan.mall.order.controller.chain;

/**
 * @Author Pudding
 * @Date 2024/7/18 21:37
 */
public abstract class AbstractHandler {

    //指针，指向下一个handler
    AbstractHandler nextHandler;

    //设置下一个handler
    public void setNextHandler(AbstractHandler nextHandler) {
        this.nextHandler = nextHandler;
    }

    //处理任务的方法
    public abstract void handle(HandlerContext handlerContext);
}
